HDFS-16882. RBF: Add cache hit rate metric in MountTableResolver#getDestinationForPath#5276
Conversation
|
💔 -1 overall
This message was automatically generated. |
...-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MountTableResolver.java
Outdated
Show resolved
Hide resolved
8d594ab to
b7621b1
Compare
|
💔 -1 overall
This message was automatically generated. |
b7621b1 to
dd60b20
Compare
|
💔 -1 overall
This message was automatically generated. |
| * @param name Name of the record. | ||
| * @param count count of the record. | ||
| */ | ||
| public void setLocCache(String name, long count) { |
There was a problem hiding this comment.
Let's spell it out "setLocationCache"
There was a problem hiding this comment.
thanks a lot, i have fixed it~
...-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MountTableResolver.java
Outdated
Show resolved
Hide resolved
dd60b20 to
c1ca2a7
Compare
|
💔 -1 overall
This message was automatically generated. |
c1ca2a7 to
d9318ef
Compare
|
🎊 +1 overall
This message was automatically generated. |
d9318ef to
799f138
Compare
|
💔 -1 overall
This message was automatically generated. |
cd3437e to
d2df339
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
...-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/resolver/MountTableResolver.java
Outdated
Show resolved
Hide resolved
…estinationForPath
d2df339 to
684378d
Compare
|
💔 -1 overall
This message was automatically generated. |
|
Thanks @hfutatzhanghb for your contribution! Thanks @goiri for your review! |
|
Hi @hfutatzhanghb , could you please backport this to branch-3.3. Thanks! |
|
@tomscut OK, I will do this soonly~ thanks tao brother |
…estinationForPath (apache#5276) Reviewed-by: Inigo Goiri <inigoiri@apache.org> Signed-off-by: Tao Li <tomscut@apache.org>
…estinationForPath (apache#5276) Reviewed-by: Inigo Goiri <inigoiri@apache.org> Signed-off-by: Tao Li <tomscut@apache.org>
Currently, the default value of "dfs.federation.router.mount-table.cache.enable" is true and the default value of "dfs.federation.router.mount-table.max-cache-size" is 10000.
But there is no metric that display cache hit rate, I think we can add cacheMissed and cacheAccess metrics to watch the Cache performance and better tuning the parameters.